import { BasicColumn, FormSchema } from '/@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '通知公告id',
    dataIndex: 'noticeId',
  },
  {
    title: '用户id',
    dataIndex: 'userId',
  },
  {
    title: '阅读状态（字典 0-未读 1-已读）',
    dataIndex: 'readStatus',
  },
  {
    title: '阅读时间',
    dataIndex: 'readTime',
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'noticeId',
    label: '通知公告id',
    component: 'Input',
    colProps: { span: 8 },
  },
  {
    field: 'userId',
    label: '用户id',
    component: 'Input',
    colProps: { span: 8 },
  },
  {
    field: 'readStatus',
    label: '阅读状态（字典 0-未读 1-已读）',
    component: 'Input',
    colProps: { span: 8 },
  },
  {
    field: 'readTime',
    label: '阅读时间',
    component: 'Input',
    colProps: { span: 8 },
  },
];

export const formSchema: FormSchema[] = [
  {
    field: 'id',
    label: 'ID',
    component: 'Input',
    show: false,
  },
  {
    field: 'noticeId',
    label: '通知公告id',
    component: 'Input',
    required: true,
  },
  {
    field: 'userId',
    label: '用户id',
    component: 'Input',
    required: true,
  },
  {
    field: 'readStatus',
    label: '阅读状态（字典 0-未读 1-已读）',
    component: 'Input',
    required: true,
  },
  {
    field: 'readTime',
    label: '阅读时间',
    component: 'Input',
    required: true,
  },
];
